<?php

namespace App\Admin\Service;

use App\Admin\Grid\NGrid;
use App\Models\ShopUserModel;
use Encore\Admin\Form;

class ShopUserService extends BaseService
{
    public string $table = 'shop_user';

    /**
     * grid
     * @return void
     */
    public function grid(): void
    {
        $this->grid = new NGrid(new ShopUserModel);
        $this->grid->model()->orderByDesc('id');
        $this->gid();
    }

    /**
     * form
     * @return void
     */
    public function form(): void
    {
        $this->form = new Form(new ShopUserModel);
    }
}
